<?php
/* @var $this UserController */
/* @var $model User */

$this->breadcrumbs=array(
	'Users'=>array('index'),
	$model->ID=>array('view','id'=>$model->ID),
	'Update',
);

$this->menu=array(
	array('label'=>'List User', 'url'=>array('index')),
	array('label'=>'Create User', 'url'=>array('create')),
	array('label'=>'View User', 'url'=>array('view', 'id'=>$model->ID)),
	array('label'=>'Manage User', 'url'=>array('admin')),
);
?>

<?php
$cs = Yii::app ()->clientScript;
$cs->registerScript('#yw2',
"
		$(document).ready(function(){
 		   $('#main-nav .nav-top-item').eq(0).removeClass('current');
		   $('#yw0').css(\"display\",\"none\");
		   $('#yw1').css(\"display\",\"none\");
		   $('#yw2').css(\"display\",\"block\");
		   $('#main-nav .nav-top-item').eq(2).addClass('current');
		});
"
);
?>
    <div class="content-box">
      <!-- Start Content Box -->
      <div class="content-box-header">
        <h3>管理员资料修改</h3>
        <ul class="content-box-tabs">
          <li><a href="<?php echo $this->createUrl('/backend/setting')?>" class="default-tab current">表单</a></li>
        </ul>
        <div class="clear"></div>
      </div>
      <!-- End .content-box-header -->
      <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">  
            <fieldset>
        
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'user-form',
	'enableAjaxValidation'=>false,
)); ?>


	<?php echo $form->errorSummary($model); ?>

	
	<div class="row">
		<?php echo $form->labelEx($model,'display_name'); ?>
		<?php echo $form->textField($model,'display_name',array( 'class' => 'text-input small-input')); ?>
		<?php echo $form->error($model,'display_name'); ?>
	</div>
	

	<div class="row">
		<?php echo $form->labelEx($model,'user_pass'); ?>
		<?php echo $form->textField($model,'user_pass',array( 'class' => 'text-input small-input')); ?>
		<?php echo $form->error($model,'user_pass'); ?>
	</div>

	<?php echo $form->hiddenField($model,'user_login',array('type'=>"hidden" )); ?>
	<?php echo $form->error($model,'user_login'); ?>
	
	<?php echo $form->hiddenField($model,'user_email',array('type'=>"hidden" )); ?>
	<?php echo $form->error($model,'user_email'); ?>
	
	<?php echo $form->hiddenField($model,'user_url',array('type'=>"hidden" )); ?>
	<?php echo $form->error($model,'user_url'); ?>

	<?php echo $form->hiddenField($model,'user_registered',array('type'=>"hidden" )); ?>
	<?php echo $form->error($model,'user_registered'); ?>


	<?php echo $form->hiddenField($model,'user_status',array('type'=>"hidden" )); ?>
	<?php echo $form->error($model,'user_status'); ?>

	

	<div class="row buttons">
		<?php echo CHtml::submitButton('修改'); ?>
	</div>

<?php $this->endWidget(); ?>
            </fieldset>
</div>
        <!-- End #tab1 -->
  
      </div>
      <!-- End .content-box-content -->
    </div>
    <!-- End .content-box -->